#ifndef _AHT10_H__
#define _AHT10_H__

#include "n32l40x.h"
#define aht10_scl_clk_en()        RCC_EnableAPB2PeriphClk(RCC_APB2_PERIPH_GPIOA, ENABLE)
#define aht10_sda_clk_en()        RCC_EnableAPB2PeriphClk(RCC_APB2_PERIPH_GPIOA, ENABLE)
#define AHT10_SCL_PIN             GPIO_PIN_12
#define AHT10_SDA_PIN             GPIO_PIN_11
#define AHT10_SCL_GPIO            GPIOA
#define AHT10_SDA_GPIO            GPIOA

#define AHT10_ADDRESS 0x70
#define AHT10_WRITE 0x70
#define AHT10_READ 0x71

/*****************函数声明******************/
extern void AHT10Init(void);
extern uint8_t AHT10Check(void);
extern void AHT10Reset(void);
extern uint8_t AHT10ReadData(float *temperature,uint8_t *humidity);

#endif



